﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Baby.Growup.Api.Response.Weixin.AccessToken;

namespace Baby.Growup.Api.Request.Weixin.AccessToken
{
    public class AccessTokenGetRequest : IRequest<AccessTokenGetResponse>
    {
        private IDictionary<string, string> _otherParameters;

        public string GetApiName()
        {
            return "https://api.weixin.qq.com/cgi-bin/token";
        }

        public IDictionary<string, string> GetParameters()
        {
            return _otherParameters;
        }

        public void Validate()
        {
            
        }

        public void AddParameter(string key, string value)
        {
            if (_otherParameters == null)
            {
                _otherParameters = new Dictionary<string, string>();
            }
            _otherParameters.Add(key,value);
        }
    }
}
